﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SH.Common.DataDictionary;
using SH.Order.Application.IServices.IDic;

namespace SH.Order.Read.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class DicController : ControllerBase
    {
        private readonly IDicServices _idicservices;
        public DicController(IDicServices idicservices)
        {
            _idicservices = idicservices;
        }
        /// <summary>
        /// 字典显示
        /// </summary>
        /// <param name="Identification"></param>
        /// <returns></returns>
        [HttpGet]  
        public IActionResult  DicShow(string Identification = "")
        {
            return  Ok(_idicservices.DicShow(Identification));
        }
    }
}
